package com.mlnx.ecg.ui.model;

import java.io.Serializable;

import lombok.Data;

/**
 * Created by amanda.shan on 2018/2/6.
 */
@Data
public class RealEcgAnalysResult implements Serializable, Comparable<RealEcgAnalysResult> {

    private long time;

    private Integer patientId;

    private String deviceId;

    private byte[] ecgData; // 解析出来的心电数据

    private byte[] filterEcgData; // 滤波后的的心电数据

    private Integer heart;

    private Integer pbNumb; // 早搏个数

    private int[] sts = new int[8];

    private HeartResult heartResult;    // 心率失常疾病

    private int rr;  // rr间隔 ms

    @Override
    public int compareTo(RealEcgAnalysResult o) {
        return (int) (this.getTime() - o.getTime());
    }
}
